﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Profitmessang.aspx.cs" Inherits="Finance_Salemessage" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/changerows.js"></script>
     <script type="text/javascript" src="../js/rl.js"></script>
    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    
     function PrintData(id)
    {
        if(id!="")
        {
  
            window.open("../Sales/DrawPrint1.aspx?id="+id,"","width=800px,height=650px,left=100px,top=30px,scrollbars=yes");
            return false;
        }
        return false;
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22"/></td>
                <td style="width: 232px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="81%" align="right"> <font color="red"> &nbsp;[ <a href="javascript:location.href=document.referrer;" ><font color="red">返回</font></a> ]</font>
        &nbsp;</td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" EmptyDataText="没有数据" >
             <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="单号" DataField="SalesCode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField> 
              
                <asp:BoundField HeaderText="开单日期" DataField="cdate" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="库存类型" DataField="typeStock" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="客户名称" DataField="GuestName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                <asp:BoundField HeaderText="商品名称" DataField="comodName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="modul" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                <asp:BoundField HeaderText="条码" DataField="comodBarcode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="单价(元)">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("prices","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="数量" DataField="number" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="单位" DataField="unit" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                      <asp:TemplateField HeaderText="总金额(元)">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("TotalMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                          <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="毛利(元)">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("lr","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                          <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="经办人" DataField="realname" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <%--<asp:TemplateField HeaderText="打印">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkbtnSales" CommandArgument='<%#Eval("SalesCode") %>' runat="server"
                            OnClick="linkbtnSales_Click" ForeColor="Red">打印</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>--%>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table align="center" width="99%">
        <tr >
        <td style="width: 744px"><uc1:PageNavigator ID="PageNavigator1" ConnectionString="connstr" DataId="GvData" PageSize="20" ShowType="Text" runat="server" /></td>
        </tr>
        </table>
        
        <asp:HiddenField ID="HidWareid" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>